﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200085B RID: 2139
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetTrainVisitorBehaviorScRsp : IMessage<GetTrainVisitorBehaviorScRsp>, IMessage, IEquatable<GetTrainVisitorBehaviorScRsp>, IDeepCloneable<GetTrainVisitorBehaviorScRsp>, IBufferMessage
	{
		// Token: 0x17001B04 RID: 6916
		// (get) Token: 0x06005FB5 RID: 24501 RVA: 0x000FF413 File Offset: 0x000FD613
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetTrainVisitorBehaviorScRsp> Parser
		{
			get
			{
				return GetTrainVisitorBehaviorScRsp._parser;
			}
		}

		// Token: 0x17001B05 RID: 6917
		// (get) Token: 0x06005FB6 RID: 24502 RVA: 0x000FF41A File Offset: 0x000FD61A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetTrainVisitorBehaviorScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001B06 RID: 6918
		// (get) Token: 0x06005FB7 RID: 24503 RVA: 0x000FF42C File Offset: 0x000FD62C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetTrainVisitorBehaviorScRsp.Descriptor;
			}
		}

		// Token: 0x06005FB8 RID: 24504 RVA: 0x000FF433 File Offset: 0x000FD633
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetTrainVisitorBehaviorScRsp()
		{
		}

		// Token: 0x06005FB9 RID: 24505 RVA: 0x000FF446 File Offset: 0x000FD646
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetTrainVisitorBehaviorScRsp(GetTrainVisitorBehaviorScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.visitorBehaviorList_ = other.visitorBehaviorList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005FBA RID: 24506 RVA: 0x000FF47C File Offset: 0x000FD67C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetTrainVisitorBehaviorScRsp Clone()
		{
			return new GetTrainVisitorBehaviorScRsp(this);
		}

		// Token: 0x17001B07 RID: 6919
		// (get) Token: 0x06005FBB RID: 24507 RVA: 0x000FF484 File Offset: 0x000FD684
		// (set) Token: 0x06005FBC RID: 24508 RVA: 0x000FF48C File Offset: 0x000FD68C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001B08 RID: 6920
		// (get) Token: 0x06005FBD RID: 24509 RVA: 0x000FF495 File Offset: 0x000FD695
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<TrainVisitorBehavior> VisitorBehaviorList
		{
			get
			{
				return this.visitorBehaviorList_;
			}
		}

		// Token: 0x06005FBE RID: 24510 RVA: 0x000FF49D File Offset: 0x000FD69D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetTrainVisitorBehaviorScRsp);
		}

		// Token: 0x06005FBF RID: 24511 RVA: 0x000FF4AC File Offset: 0x000FD6AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetTrainVisitorBehaviorScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.visitorBehaviorList_.Equals(other.visitorBehaviorList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005FC0 RID: 24512 RVA: 0x000FF4FC File Offset: 0x000FD6FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.visitorBehaviorList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005FC1 RID: 24513 RVA: 0x000FF549 File Offset: 0x000FD749
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005FC2 RID: 24514 RVA: 0x000FF551 File Offset: 0x000FD751
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005FC3 RID: 24515 RVA: 0x000FF55C File Offset: 0x000FD75C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.visitorBehaviorList_.WriteTo(ref output, GetTrainVisitorBehaviorScRsp._repeated_visitorBehaviorList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005FC4 RID: 24516 RVA: 0x000FF5AC File Offset: 0x000FD7AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.visitorBehaviorList_.CalculateSize(GetTrainVisitorBehaviorScRsp._repeated_visitorBehaviorList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005FC5 RID: 24517 RVA: 0x000FF600 File Offset: 0x000FD800
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetTrainVisitorBehaviorScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.visitorBehaviorList_.Add(other.visitorBehaviorList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005FC6 RID: 24518 RVA: 0x000FF64D File Offset: 0x000FD84D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005FC7 RID: 24519 RVA: 0x000FF658 File Offset: 0x000FD858
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 74U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.visitorBehaviorList_.AddEntriesFrom(ref input, GetTrainVisitorBehaviorScRsp._repeated_visitorBehaviorList_codec);
				}
			}
		}

		// Token: 0x040024D2 RID: 9426
		private static readonly MessageParser<GetTrainVisitorBehaviorScRsp> _parser = new MessageParser<GetTrainVisitorBehaviorScRsp>(() => new GetTrainVisitorBehaviorScRsp());

		// Token: 0x040024D3 RID: 9427
		private UnknownFieldSet _unknownFields;

		// Token: 0x040024D4 RID: 9428
		public const int RetcodeFieldNumber = 11;

		// Token: 0x040024D5 RID: 9429
		private uint retcode_;

		// Token: 0x040024D6 RID: 9430
		public const int VisitorBehaviorListFieldNumber = 9;

		// Token: 0x040024D7 RID: 9431
		private static readonly FieldCodec<TrainVisitorBehavior> _repeated_visitorBehaviorList_codec = FieldCodec.ForMessage<TrainVisitorBehavior>(74U, TrainVisitorBehavior.Parser);

		// Token: 0x040024D8 RID: 9432
		private readonly RepeatedField<TrainVisitorBehavior> visitorBehaviorList_ = new RepeatedField<TrainVisitorBehavior>();
	}
}
